﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;


namespace OAProject.Domain.Entities
{
    /// <summary>
    /// 请假申请表
    /// </summary>
    public class Attendance
    {
        [Key]
        public int AttenId { get; set; }

        //请假类型外键id
        public int GenreId { get; set; }

        //请假时间
        public DateTime Times { get; set; }

        //请假天数
        public string Days { get; set; }

        //请假事由
        public string Incident { get; set; }

        //附件
        public string uploadFiles { get; set; }

        //审核人
        public string Auditor { get; set; }

        //知会人
        public string InformPerson { get; set; }

        //状态
        public int Seate { get; set; }
    }

    /// <summary>
    /// 请假类型表
    /// </summary>
    public class AttendanceGenre
    {
        [Key]
        public int GenreTypeId { get; set; }

        //请假类型名称
        public string LeaveName { get; set; }
    }
}
